package cc.mxtt.mvc.service.impl;

import java.util.ArrayList;
import java.util.List;

import cc.mxtt.mvc.model.Menu;
import cc.mxtt.mvc.model.Power;
import cc.mxtt.mvc.model.PowerMenu;
import cc.mxtt.mvc.model.TreeGridMenu;
import cc.mxtt.mvc.model.TreeMenu;
import cc.mxtt.mvc.service.PowerService;

import com.jfinal.plugin.activerecord.Db;

public class PowerServiceImpl implements PowerService {


	@Override
	public List<PowerMenu> getTree(String role_id,String menu_id) {
		return Power.dao.getTree(role_id, Power.dao.getChildrenTree(role_id,menu_id));
	}
	
}
